package com.service;

import org.springframework.stereotype.Component;

import java.util.Map;
public interface SysDictionaryService {
   /**
    * 加载字典缓存信息
    * @return
    */
   Map<String, Map<String, String>> load();
   Map<String, Map<String, String>> getData();
   Map<String, Map<String, String>> setData(Map<String, Map<String, String>> data);

   /**
    * 获取typename中单个的值
    * @param typeName
    * @param key
    * @param defaultVlaue
    * @return
    */
   String getValue(String typeName, String key, String defaultVlaue);

   /**
    * 获取typename中所有的值
    * @param typeName
    * @return
    */
   Map<String, String> getValues(String typeName);
}
